﻿using System;
using System.Collections.ObjectModel;

namespace G.Model
{
    public class GameEventDefs : KeyedCollection<string, GameEventDef>
    {

        internal GameEventDefs()
        {
        }

        public void Add(string name)
        {
            GameEventDef def = new GameEventDef(name);
            base.Add(def);
        }

        protected override string GetKeyForItem(GameEventDef item)
        {
            return item.Name;
        }
    }
}
